package java6681.coach;

/**
 * @Title: PersonDemo
 * @Author Junichiro
 * @Description:TODO
 * @Date: 2020/12/19 0019 下午 9:23
 */
public class PersonDemo6681 {
    public static void main(String[] args) {
        PingPangPlayer66816681 ppp = new PingPangPlayer66816681();
        ppp.setName("张某");
        ppp.setAge(21);
        System.out.println(ppp.getName()+","+ppp.getAge());
        ppp.eat();
        ppp.study();
        ppp.speakEnglish();

        System.out.println("-------------------");

        PingPangCoach6681 ccc = new PingPangCoach6681();
        ccc.setName("小张");
        ccc.setAge(66);
        System.out.println(ccc.getName()+","+ccc.getAge());
        ccc.eat();
        ccc.teach();
        ccc.speakEnglish();

        System.out.println("============================");
        BasketballPlayer66816681 bp = new BasketballPlayer66816681();
        bp.setName("王五");
        bp.setAge(11);
        System.out.println(bp.getName()+","+bp.getAge());
        bp.eat();
        bp.study();

    }
}
